package com.aircms.pojo.validation.users;

import com.aircms.pojo.Users;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

public class LoginValidation extends Users {

    @NotEmpty(message = "密码必须")
    @Size(min = 6,message = "密码长度至少6位")
    private String password;

    @NotEmpty(message = "用户名必须")
    private String name;

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }


}
